package com.zl.quickdoc.constant;

import java.util.regex.Pattern;

import org.springframework.http.MediaType;

/**
 * @author zhouliang
 *
 */
public class QuickDocC {
    
    public final static String TYPE_JSON = MediaType.APPLICATION_JSON_VALUE;
    public final static String TYPE_FORM_DATA = MediaType.MULTIPART_FORM_DATA_VALUE;
    public final static String TYPE_FORM_URLENCODED = MediaType.APPLICATION_FORM_URLENCODED_VALUE;
    
    public final static String TYPE_STREAM = MediaType.APPLICATION_OCTET_STREAM_VALUE;
    public final static String TYPE_XML = MediaType.TEXT_XML_VALUE;
    public final static String TYPE_HTML= MediaType.TEXT_HTML_VALUE;
    
    public final static String SIMPLE_TYPE_JSON ="json";
    public final static String SIMPLE_TYPE_FORM_DATA ="form";
    public final static String SIMPLE_TYPE_FORM_URLENCODED ="urlencoded";
   
    public final static String SIMPLE_TYPE_STREAM ="file";
    public final static String SIMPLE_TYPE_XML ="xml";
    public final static String SIMPLE_TYPE_HTML ="html";
    
    public static final String NOT_EN = "N";
    public static final String NOT_ZH = "非必填";
    public static final String YES_EN = "Y";
    public static final String YES_ZH = "必填";
    
    public static final String DOC_TYPE_HTML = "html";
    public static final String DOC_TYPE_MARKDOWN = "markdown";
    public static final String DOC_TYPE_WORD = "word";
    public static final String DOC_TYPE_JAVA = "javaclass";
    public static final String DOC_TYPE_EXCEL = "excel";
    
    //目录
    public static final String CHILDREN_PATH_VERSION = "versions";
    public static final String CHILDREN_PATH_TESTS = "tests";
    public static final String CHILDREN_PATH_APIDOC = "apidoc";
    
    //模板文件
    public static final String TEMPLATE_ROOT= "com/zl/quickdoc/format/template/";
    public static final String TEMPLATE_HTML =  "htmldoc.ftl";
    public static final String TEMPLATE_MARKDOWN =  "markdowndoc.ftl";
    public static final String TEMPLATE_JAVA =  "javaclass.ftl";
    public static final String TEMPLATE_WORD =  "worddoc.docx";
    public static final String TEMPLATE_EXCEL =  "exceldoc.xlsx";
    
    
    public static final String DESC_VERSION_INIT= "初始版本";
    public static final String NAME_VERSION_CHANGES= "changes.json";
    public static final String NAME_VERSION_APIS= "apis_%s.json";
    
    public static final String MODULE_ACTION_CHAR= ">";
    public static final String KEY_SPLIT_CHAR= "-=-=-";
    
    public static final String DEF_KEY_LIST= "[...]";
    public static final String DEF_KEY_OBJECT= "{...}";
    public static final String GENERIC_OBJECT_FORMAT = "<%s>";
    
    public static final Pattern RULE_IGNORE_TAG = Pattern.compile("@ignore\\b");
    
    
}
